//
//  LetterEntity.m
//  QQplayground
//
//  Created by zhangxy on 2018/8/10.
//  Copyright © 2018年 zhang. All rights reserved.
//

#import "LetterEntity.h"

@implementation LetterEntity

- (instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    self = [super init];
    if (self) {
        self = [LetterEntity yy_modelWithDictionary:dictionary];
        _from_user_info = [[User alloc] initWithDictionary:dictionary[@"from_user_info"]];
        _to_user_info = [[User alloc] initWithDictionary:dictionary[@"to_user_info"]];
    }
    return self;
}


+ (NSDictionary<NSString *,id> *)modelCustomPropertyMapper
{
    return @{
             @"n_id" : @"message_id",
             @"is_top" : @"is_top",
             @"message":@"message",
             @"add_time":@"add_time"
             };
}

@end
